package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.DeleteMapping;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    void insertBed(Bed bed);

    @Select("SELECT * FROM bed WHERE id = #{id}")
    Bed selectById(Long id);

    void update(Bed bed);

    @Delete("DELETE FROM bed WHERE id = #{id}")
    void delete(Long id);
    // int updateBed(Bed bed);
    //
    // int deleteBedById(Long id);
    //
    // Bed getBedById(Long id);
    //
    // List<Bed> getAllBeds();
}

